import React, { Component } from 'react';
import ReactDOM from 'react-dom';
 

class Toggle  extends Component{
    constructor(props) {
        super(props);
        this.state = {isToggleOn: true};
    }
    
     render(){
        return (
            <a href="" onClick={this.handleClick}>
                Click me
            </a>
        );
     }
     handleClick(e){
        e.preventDefault();
        console.log("handleclick tiger")
     }
}

ReactDOM.render(
    <Toggle  />,
    document.getElementById('root')
);
 